<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <style>
        table{
            border: black 1px solid;
            border-collapse: collapse;

        }
        td{
            border: black 1px solid;
            width: 150px;
            height: 40px;
            border-collapse: collapse;
            text-align: center;
            background-color: rgb(128, 228, 128);
        }
    </style>





<div id="box"></div>
</body>
<script>


    var tas = "<table >"
    for(i=1;i<=4;i++){
         tas+="<tr>"
        for(j=1;j<=10;j++){
            tas+=`<td>${i}排${j}列</td>`
            if(i==1&&j==3 ||i==2&&j==5 ||i==3&&j==8 ||i==4&&j==1){
                tas+=`<td style="background:green">${i}排${j}列</td> `
            }
        }
        tas+="</tr>"
    }
tas+="<table>"
box.innerHTML=tas

</script>
</html>
